package main.controller;

import java.util.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.*;
import org.springframework.http.*;
import org.springframework.data.domain.*;
import org.springframework.web.bind.annotation.*;

import com.justep.cloud.microservice.http.*;
import com.justep.cloud.microservice.*;


import main.service.X5FanhuizfcService;


@RestController
public class FanhuizfcController extends MicroServiceBaseController {
	private static final Logger logger = LoggerFactory.getLogger(FanhuizfcController.class);
	static Map<String, Map<String, Integer>> exceptionStatusMap = new HashMap<String, Map<String, Integer>>();
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("zhijiefhdqsj", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("zhazhaoddh", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("shifouyhpj", map);
	}		
	static {
		Map<String, Integer> map = new HashMap<String, Integer>();
		exceptionStatusMap.put("jianzhaymyrln", map);
	}		
	@Autowired
	@Qualifier("x5FanhuizfcService")
	private X5FanhuizfcService service;

	//系统生成代码,请不要修改或删除 <actionStart:zhijiefhdqsj>
@RequestMapping(value = "/main/fanhuizfc/zhijiefhdqsj", method = RequestMethod.GET)
	public ResponseEntity<String> zhijiefhdqsj() throws Exception {
		try {
String resp = service.zhijiefhdqsj();
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("zhijiefhdqsj");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:zhijiefhdqsj>
	//系统生成代码,请不要修改或删除 <actionStart:zhazhaoddh>
@RequestMapping(value = "/main/fanhuizfc/zhazhaoddh", method = RequestMethod.GET)
	public ResponseEntity<String> zhazhaoddh(


@RequestParam(name = "orderID" ) String orderID
) throws Exception {
		try {
String resp = service.zhazhaoddh(orderID);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("zhazhaoddh");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:zhazhaoddh>
	//系统生成代码,请不要修改或删除 <actionStart:shifouyhpj>
@RequestMapping(value = "/main/fanhuizfc/shifouyhpj", method = RequestMethod.GET)
	public ResponseEntity<String> shifouyhpj(


@RequestParam(name = "orderID" ) String orderID,
			@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
String resp = service.shifouyhpj(orderID,sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("shifouyhpj");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:shifouyhpj>
	//系统生成代码,请不要修改或删除 <actionStart:jianzhaymyrln>
@RequestMapping(value = "/main/fanhuizfc/jianzhaymyrln", method = RequestMethod.GET)
	public ResponseEntity<String> jianzhaymyrln(


@RequestHeader(name = "X-Credential-User-Id" ) String sys_XCredentialUserId
) throws Exception {
		try {
String resp = service.jianzhaymyrln(sys_XCredentialUserId);
HttpHeaders headers = new HttpHeaders();
headers.putAll(getSystemHeader());
processContentType(headers);
ResponseEntity<String> ret = new ResponseEntity<String>(resp,headers,HttpStatus.OK);
return ret;
		} catch (ActionException ex) {
			ex.setActionName("jianzhaymyrln");
			throw ex;
		}
	}
	//系统生成代码,请不要修改或删除 <actionEnd:jianzhaymyrln>
	@Override
	protected Map<String, Map<String, Integer>> getExceptionStatusMap() {
		return exceptionStatusMap;
	}
}
